<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>平台用户</h2>
        <ol class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li>
                <a href="#{:U('PlateformUser/')}">平台用户</a>
            </li>
            <li class="active">
                <strong>{$isEdit?'修改':'添加'}平台用户</strong>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div>
                        <button class="btn btn-link" type="button" onclick="history.back()">
                            <span class="fa fa-angle-left"></span>
                            返回
                        </button>
                    </div>
                    <form method="post" class="form-horizontal" id="form1">
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">用户昵称</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.user_name}" placeholder="用户昵称" name="user_name" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">用户账号</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.user_accouont}" placeholder="用户账号" name="user_accouont" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">登录密码</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.password}" placeholder="登录密码" name="password" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">支付密码</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.pay_password}" placeholder="支付密码" name="pay_password" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">是否推送消息</label>
                            <div class="col-sm-10">
                                {:W('parts/op',['key'=>'yn','name'=>'send_message','value'=>$m.send_message])}
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">账号余额</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.account_balance}" placeholder="账号余额" name="account_balance" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">设备编码</label>
                            <div class="col-sm-10">
                                                                <input value="{$m.device_code}" placeholder="设备编码" name="device_code" type="text" required class="form-control">
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">是否是会员</label>
                            <div class="col-sm-10">
                                {:W('parts/op',['key'=>'yn','name'=>'is_vip','value'=>$m.is_vip])}
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <label class="col-sm-2 control-label">是否停用</label>
                            <div class="col-sm-10">
                                {:W('parts/op',['key'=>'yn','name'=>'is_stop','value'=>$m.is_stop])}
                                                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                                                <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <!--<button class="btn btn-white" data-op="reset" type="button">重 置</button>-->
                                <!--&nbsp;-->
                                <!--&nbsp;-->
                                <button data-style="expand-left" class="btn btn-primary ladda-button" type="button"
                                        data-op="submit">确 定
                                </button>
                            </div>
                        </div>
                        <div>
                            <button class="btn btn-link" data-op="back" type="button">
                                <span class="fa fa-angle-left"></span>
                                返回
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    YForm.create('#form1', "{:U('saveModel')}",'{$m.id}');
</script>